package com.yhao.stock.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 历史交易数据
 * </p>
 *
 * @author yhao
 * @since 2023-11-15
 */
@ApiModel(value="HisData2023对象", description="历史交易数据")
@NoArgsConstructor
@AllArgsConstructor
public class HisData2023 implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String dName;

    @ApiModelProperty(value = "代码")
    private String dCode;

    @ApiModelProperty(value = "交易日期")
    private String dDate;

    @ApiModelProperty(value = "开盘价格")
    private BigDecimal openPrice;

    @ApiModelProperty(value = "最终价格")
    private BigDecimal finalPrice;

    @ApiModelProperty(value = "涨跌")
    private BigDecimal upDown;

    @ApiModelProperty(value = "涨幅")
    private BigDecimal upDownRate;

    @ApiModelProperty(value = "最低")
    private BigDecimal lowest;

    @ApiModelProperty(value = "最高")
    private BigDecimal highest;

    @ApiModelProperty(value = "总手")
    private BigDecimal totalHands;

    @ApiModelProperty(value = "交易金额（万）")
    private BigDecimal tranAmount;

    @ApiModelProperty(value = "换手率")
    private BigDecimal turnoverRate;

    @ApiModelProperty(value = "统计时间")
    private LocalDateTime statTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }
    public String getdCode() {
        return dCode;
    }

    public void setdCode(String dCode) {
        this.dCode = dCode;
    }
    public String getdDate() {
        return dDate;
    }

    public void setdDate(String dDate) {
        this.dDate = dDate;
    }
    public BigDecimal getOpenPrice() {
        return openPrice;
    }

    public void setOpenPrice(BigDecimal openPrice) {
        this.openPrice = openPrice;
    }
    public BigDecimal getFinalPrice() {
        return finalPrice;
    }

    public void setFinalPrice(BigDecimal finalPrice) {
        this.finalPrice = finalPrice;
    }
    public BigDecimal getUpDown() {
        return upDown;
    }

    public void setUpDown(BigDecimal upDown) {
        this.upDown = upDown;
    }
    public BigDecimal getUpDownRate() {
        return upDownRate;
    }

    public void setUpDownRate(BigDecimal upDownRate) {
        this.upDownRate = upDownRate;
    }
    public BigDecimal getLowest() {
        return lowest;
    }

    public void setLowest(BigDecimal lowest) {
        this.lowest = lowest;
    }
    public BigDecimal getHighest() {
        return highest;
    }

    public void setHighest(BigDecimal highest) {
        this.highest = highest;
    }
    public BigDecimal getTotalHands() {
        return totalHands;
    }

    public void setTotalHands(BigDecimal totalHands) {
        this.totalHands = totalHands;
    }
    public BigDecimal getTranAmount() {
        return tranAmount;
    }

    public void setTranAmount(BigDecimal tranAmount) {
        this.tranAmount = tranAmount;
    }
    public BigDecimal getTurnoverRate() {
        return turnoverRate;
    }

    public void setTurnoverRate(BigDecimal turnoverRate) {
        this.turnoverRate = turnoverRate;
    }
    public LocalDateTime getStatTime() {
        return statTime;
    }

    public void setStatTime(LocalDateTime statTime) {
        this.statTime = statTime;
    }

    @Override
    public String toString() {
        return "HisData2023{" +
        "id=" + id +
        ", dName=" + dName +
        ", dCode=" + dCode +
        ", dDate=" + dDate +
        ", openPrice=" + openPrice +
        ", finalPrice=" + finalPrice +
        ", upDown=" + upDown +
        ", upDownRate=" + upDownRate +
        ", lowest=" + lowest +
        ", highest=" + highest +
        ", totalHands=" + totalHands +
        ", tranAmount=" + tranAmount +
        ", turnoverRate=" + turnoverRate +
        ", statTime=" + statTime +
        "}";
    }

    public HisData2023(String dName, String dCode, String dDate, BigDecimal openPrice, BigDecimal finalPrice, BigDecimal upDown, BigDecimal upDownRate, BigDecimal lowest, BigDecimal highest, BigDecimal totalHands, BigDecimal tranAmount, BigDecimal turnoverRate, LocalDateTime statTime) {
        this.dName = dName;
        this.dCode = dCode;
        this.dDate = dDate;
        this.openPrice = openPrice;
        this.finalPrice = finalPrice;
        this.upDown = upDown;
        this.upDownRate = upDownRate;
        this.lowest = lowest;
        this.highest = highest;
        this.totalHands = totalHands;
        this.tranAmount = tranAmount;
        this.turnoverRate = turnoverRate;
        this.statTime = statTime;
    }
}
